@extends('departmentManagement.business.layouts')
@section('style')
    <meta name="_token" content="{{ csrf_token() }}"/>
    <style>
        .process-claim-th{
            text-align: center;
            color: #676767;
        }
        .process-claim-td{
            text-align: center;
            color: #676767;
        }
    </style>
    <link rel="stylesheet" href="{{asset('admin_assets/css/bootstrap-datetimepicker.min.css')}}">
    <link rel="stylesheet" href="{{url('css/search.css')}}">
@stop
@section('content')
    <div class="content-wrapper" style="background-color: white">
        <section class="content">
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="box box-info"
                         style="padding-top: 0px;margin-top: 0px;border-top: 0px;border-bottom: solid 1px #0080ff;">
                        <div class="box-body">
                            <div class="row">
                                <div class="col-lg-3 col-md-3 col-sm-12 col-xs-12" style="margin-top: 0.5vw">
                                    <a href="#" title="返回首页"><i
                                                class="fa fa-home fa-2x"
                                                style="width: 100%;color: #0080FF">
                                            <span style="font-size: 1.2vw">&nbsp;用户已删除业务中心</span></i></a>
                                </div>
                                <div class="col-lg-2 col-md-2 col-sm-12 col-xs-12  col-lg-offset-7 col-md-offset-7">
                                    <form action="{{url('management/business/deletedBusinessByUserSearch')}}" method="post" enctype="multipart/form-data" class="search">
                                        {{csrf_field()}}
                                        <input type="search" id="search-input" name="search">
                                        <button class="fa fa-search fa-lg"></button>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            @include('public/alert')
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="table-responsive" style="height: 80%">
                        <table class="table table-bordered" >
                            <thead>
                            <tr>
                                <th class="process-claim-th">编号</th>
                                <th class="process-claim-th">公司</th>
                                <th class="process-claim-th">类型</th>
                                <th class="process-claim-th">名称</th>
                                <th class="process-claim-th">申请人</th>
                                <th class="process-claim-th">联系电话</th>
                                <th class="process-claim-th">申请日期</th>
                                <th class="process-claim-th">操作</th>
                            </tr>
                            </thead>
                            <tbody>
                             @if(!empty($product))
                                 @foreach($product as $key => $value)

                                     <tr>
                                         <td class="process-claim-td">{{$key+1}}</td>
                                         <td class="process-claim-td">{{$value['company']}}</td>
                                         <td class="process-claim-td">{{$value['FirstType']['name']}}</td>
                                         <td class="process-claim-td">
                                             @if(!empty($value['name']))
                                                 {{$value['name']}}
                                                 @else
                                                 暂未设置
                                             @endif
                                         </td>
                                         <td class="process-claim-td">{{$value['applicant']}}</td>
                                         <td class="process-claim-td">{{$value['phone']}}</td>
                                         <td class="process-claim-td">{{date("Y-m-d",strtotime($value['created_at']))}}</td>
                                         <td class="process-claim-td">
                                                 <a href="{{url('management/business/recoverDeletedBusiness',['id'=>$value['id']])}}"  >恢复</a>

                                                 <a href="{{url('management/business/deletedBusiness',['id'=>$value['id']])}}" >删除</a>

                                         </td>
                                     </tr>

                                 @endforeach
                             @else
                                 <tr>
                                     <td class="process-claim-td" colspan="7" ><h3 align="center">暂无数据</h3></td>
                                 </tr>

                             @endif
                            </tbody>
                        </table>

                    </div>

                </div>

            </div>
        </section>
        @if(!empty($product))
            <div class="div-page">{{ $product->links() }}</div>
        @endif
    </div>
@stop
@section('javascript')



@stop
